package org.jeecg.modules.xl.h5api.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import org.jeecg.modules.xl.order.dto.OrderDetailNew;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 售后单新增
 *
 * @author deco
 * @create 2024-11-21
 */
@Data
@ApiModel(value="采购订单", description="采购订单")
public class OrderVO {

    /**订单单号*/
    @ApiModelProperty(value = "订单单号")
    private String orderCode;
    /**商品总数量*/
    @ApiModelProperty(value = "商品总数量")
    private Double totalNum;
    /**商品种数*/
    @ApiModelProperty(value = "商品种数")
    private Integer detailNum;
    /**订单总金额*/
    @ApiModelProperty(value = "订单总金额")
    private Double totalAmount;
    /**订单售后金额*/
    @ApiModelProperty(value = "订单售后金额")
    private Double totalAfterAmount;
    /**订单实付金额*/
    @ApiModelProperty(value = "订单实付金额")
    private Double totalRealAmount;

    /**门店编号*/
    @ApiModelProperty(value = "门店编号")
    private String storeCode;

    /**门店编号*/
    @ApiModelProperty(value = "门店名称")
    private String storeName;

    /**支付状态(0：支付中，1:已支付)*/
    @ApiModelProperty(value = "支付状态(0：支付中，1:已支付)")
    private String paymentState;
    /**付款人*/
    @ApiModelProperty(value = "付款人")
    private String paymentBy;
    /**付款时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "付款时间")
    private Date paymentTime;


    /**发货方式(1:城配，2:快递)*/
    private String deliveryWay;

    /**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    @ApiModelProperty(value = "订单状态")
    private String orderStatus;

    @ApiModelProperty(value = "订单操作")
    private List<String> orderActions;

    @ApiModelProperty(value = "订单明细")
    private List<OrderDetailNew> details;

    @ApiModelProperty(value = "收件人")
    private String receiptName;
    /**收件人手机号*/
    @ApiModelProperty(value = "收件人手机号")
    private String receiptPhone;
    /**收件地址省市区*/
    @ApiModelProperty(value = "详细地址")
    private String receiptAddress;
    /**订单备注*/
    @ApiModelProperty(value = "订单备注")
    private String orderNotes;

}
